// 转换CSS变量为Sass变量
$primary-color: #8a2be2;
$secondary-color: #9932cc;
$accent-color: #da70d6;
$background-color: #faf5ff;
$card-background: #ffffff;
$text-primary: #2e0249;
$text-secondary: #6b3a8e;
$divider-color: #e6d5ff;
$tab-indicator: linear-gradient(90deg, #8a2be2 0%, #da70d6 100%);

// 全局重置样式（Taro中可能需要调整）
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

// 组件样式
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content {
  flex: 1;
  padding-bottom: 80px;
}

.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background-color: $card-background;
  display: flex;
  border-top: 1px solid $divider-color;
  z-index: 1000;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: $text-secondary;
  position: relative;
  padding-top: 8px;

  &.active {
    color: $primary-color;
    
    .tab-icon {
      transform: scale(1.1);
    }
  }
}

.tab-icon {
  font-size: 24px;
  margin-bottom: 4px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-text {
  font-size: 12px;
  font-weight: 500;
}

// 其他通用样式
.container {
  padding: 24px;
}

.card {
  background-color: $card-background;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 17px;
  color: $text-secondary;
  margin-bottom: 24px;
}

.button {
  background-color: $primary-color;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s ease;
  width: 100%;

  &:hover {
    opacity: 0.8;
  }

  &:disabled {
    background-color: #b0b0b6;
    cursor: not-allowed;
  }
}

.divider {
  height: 1px;
  background-color: $divider-color;
  margin: 16px 0;
}